package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    List<String> getNames();

    /*
    gjx
     */
    void updateTelephoneById(Member member);
    void updatePasswordByTelephone(Member member);

    Integer getCountByDate(@Param("begin") String time00, @Param("end") String time50);

    //查询memberId
    Integer findId(Integer memberId);

    //根据id修改姓名
    void editmemberName(@Param("id") Integer id, @Param("memberName") String memberName);
}
